//
//  JGView.h
//  JGVividEngine
//
//  Created by jagger.tu on 2025/6/25.
//

/*
典型的宏值（1 = true, 0 = false）：

iOS (iPhone/iPad):
- TARGET_OS_IOS = 1
- TARGET_OS_IPHONE = 1
- TARGET_OS_OSX = 0
- TARGET_OS_WATCH = 0
- TARGET_OS_TV = 0

macOS:
- TARGET_OS_IOS = 0
- TARGET_OS_IPHONE = 0
- TARGET_OS_OSX = 1
- TARGET_OS_WATCH = 0
- TARGET_OS_TV = 0

watchOS:
- TARGET_OS_IOS = 0
- TARGET_OS_IPHONE = 1  // 注意：watchOS 也属于 IPHONE 系列
- TARGET_OS_OSX = 0
- TARGET_OS_WATCH = 1
- TARGET_OS_TV = 0

tvOS:
- TARGET_OS_IOS = 0
- TARGET_OS_IPHONE = 1  // 注意：tvOS 也属于 IPHONE 系列
- TARGET_OS_OSX = 0
- TARGET_OS_WATCH = 0
- TARGET_OS_TV = 1

模拟器额外宏：
- TARGET_OS_SIMULATOR = 1 (在模拟器中运行时)
*/


/// iOS  或 iPadOS
#if TARGET_OS_IOS
#import <UIKit/UIKit.h>
#define JGView UIView
#endif

/// macOS
#if TARGET_OS_OSX
#import <Cocoa/Cocoa.h>
#define JGView NSView

#endif


